#pragma once
#include<graphics.h>
#include<string>

class Atlas;

class Animation
{
public:
	Animation(Atlas* atlas, int interval);
	
	inline void putimage_alpha(int x, int y, IMAGE* img);

	void Play(int x, int y, int delta);

private:
	int interval_ms = 0;
	int timer = 0;
	int idx_frame = 0;
	Atlas* anim_atlas ;

};

